package com.example.auth.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.example.db.annotations.ID;
import com.example.db.annotations.Table;
import com.example.db.annotations.TableField;

import java.util.Date;

/**
 * @Classname LoginLog
 * @Description TODO
 * @Date 2022/8/13 12:08
 * @Created by XiongXiong
 * @Author: X.I.O
 *
 * 登录日志
 */
@Table("sys_login_log")
public class LoginLog {

    @ID
    private Integer id;

    @TableField("username")
    private String username;

    @TableField("userid")
    private Integer userid;

    @TableField("realname")
    private String realname;

    @TableField("loginDate")
    private Date loginDate;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField("createdate")
    private Date createdate;

    @TableField("status")
    private Integer status;

    @TableField("msg")
    private String msg;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public Date getLoginDate() {
        return loginDate;
    }

    public void setLoginDate(Date loginDate) {
        this.loginDate = loginDate;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
